< previous page page_780 next page >

Page 780
Note.gif
Try to limit users to read-only access to validation tables in a replicated environment.

Note.gif
Try to avoid using cascading updates and cascading deletes in your application when replication is used. These features make it easy for you to cause a large number of synchronization errors.

You might also receive a synchronization error when you try to update a record that is locked by another user in a multiuser environment. An entry is written to the MSysErrors system table when you encounter such an error. To avoid this problem, it is best to have all users locked out of a database during synchronization.
You might also receive an error if you add a new table to your database and use the same name that another replica used for a different table. To avoid this, all members of the replica set need to communicate all database changes.
In summary, synchronization errors can occur as a result of design changes, as a result of violation of referential integrity rules on a consolidated basis, or as a result of record locking by users of a replica set member. You can avoid most of these errors by completing development before replication begins, by securing validation tables whenever possible, and by locking the replica members involved in a synchronization.
Note.gif
Errors encountered during synchronization are stored in the MSysErrors table. This table is replicated during the synchronization process. Therefore, try to correct all encountered errors before they are passed to other members of the replica set.

Replication Topologies
When you implement database replication in your application, you most likely will make more than one replica of the original Design Master. When you do, you will be faced with the logistical question of how and when to update replica set members.
You need to implement a schema for the order in which data updates get dispersed throughout the replica set. The design of the order in which replica set members get updated

 
< previous page page_780 next page >

If you like this book, buy it!